_group  = _this select 0; 	/* Named group of units */ 
_killer = _this select 1;		/* Named player */
hint "hunt";
// SET UP UNIT ARRAY
_units = [];
	{
		_units = _units + [_x];
		// [_x] join grpNull;
	} forEach units _group;


	{
		_x SetUnitPos "Up";
		_x SetSpeedMode "Full";
		_x SetCombatMode "Red";
		_x disableAI "TARGET";
		_x disableAI "AUTOTARGET";
	} foreach (_units);

	_tgtX = getPos _target select 0;
	_tgtY = getPos _target select 1;
	_tgtZ = getPos _target select 2;
	
	// _killer setFriend [RESISTANCE,0];
	// count _units > 0 and 
	while {alive _killer} do 
	{
		{
			//_x doWatch _killer;
			_x dotarget _killer;
			if (random 2 > 1) then {
				sleep 0.5;
				_x doFire _killer;
				//_x fire (weapons _x select 0);
				_x fireAtTarget [_killer];
			};
			_dist = _x distance position _killer;
			if ( _dist > 200) then {
				_x doMove (position _killer);
			} else {
				if (_dist <100) then {
					doStop _x;
				};
			};
			sleep 1; 
		} forEach _units;	
		sleep 1;
	};
	hint "DONE";